package com.bky.config;

import com.bky.model.User;

/**
 * @Author shipeilei
 * @Date Created on 2018/5/4
 */
public class LoginContext {
    public static ThreadLocal<User> local = new ThreadLocal<User>();
    public static User getUser(){
        return local.get();
    }
    public static void setUser(User user){
        local.set(user);
    }
    public static void remove(){
        local.remove();
    }

}
